import request from '@/utils/request';

// 自媒体收益分析
export function getSubsidyListApi(query) {
  return request({
    url: `/v1/subsidy/list`,
    method: 'post',
    data: query
  });
}

// 自媒体收益详情
export function getSubsidyDetailApi(query) {
  return request({
    url: `/v1/subsidy/detail`,
    method: 'post',
    data: query
  });
}

// 自媒体月度审核列表
export function getMediasubsidyListApi(query) {
  return request({
    url: `/v1/analysis/mediasubsidy/getList`,
    method: 'post',
    data: query
  });
}

// 自媒体月度审核日期列表
export function getDateListApi(query) {
  return request({
    url: `v1/analysis/mediasubsidy/getDtList`,
    method: 'get',
    params: query
  });
}

// 自媒体月度审核详情
export function getDetailListApi(query) {
  return request({
    url: `v1/analysis/mediasubsidy/getDetailList`,
    method: 'post',
    data: query
  });
}

// 审核批量操作
export function mediaAuditApi(query) {
  return request({
    baseURL: process.env.NEWS_API,
    url: `/media/subsidy/approve_member`,
    method: 'post',
    data: query
  });
}

// 审核理由原因回显
export function getAuditReasonApi(query) {
  return request({
    baseURL: process.env.NEWS_API,
    url: `/media/subsidy/get_subsidy_month_record`,
    method: 'get',
    params: query
  });
}
